package com.yaorange.certificate.service;

import java.util.List;
import com.yaorange.certificate.domain.NjtCertificate;
import com.yaorange.certificate.vo.NjtCertificateVo;

/**
 * 合格证打印数据Service接口
 *
 * @author coach tam
 * @date 2024-07-17
 */
public interface INjtCertificateService
{
    /**
     * 查询合格证打印数据
     *
     * @param id 合格证打印数据主键
     * @return 合格证打印数据
     */
    public NjtCertificate selectNjtCertificateById(Long id);

    /**
     * 查询合格证打印数据列表
     *
     * @param njtCertificate 合格证打印数据
     * @return 合格证打印数据集合
     */
    public List<NjtCertificateVo> selectNjtCertificateList(NjtCertificateVo njtCertificate);

    /**
     * 新增合格证打印数据
     *
     * @param njtCertificate 合格证打印数据
     * @return 结果
     */
    public int insertNjtCertificate(NjtCertificate njtCertificate);

    /**
     * 修改合格证打印数据
     *
     * @param njtCertificate 合格证打印数据
     * @return 结果
     */
    public int updateNjtCertificate(NjtCertificate njtCertificate);

    /**
     * 批量删除合格证打印数据
     *
     * @param ids 需要删除的合格证打印数据主键集合
     * @return 结果
     */
    public int deleteNjtCertificateByIds(Long[] ids);

    /**
     * 删除合格证打印数据信息
     *
     * @param id 合格证打印数据主键
     * @return 结果
     */
    public int deleteNjtCertificateById(Long id);

    List<String> batchCode(NjtCertificate njtCertificate);

    void batchSaveByCode(List<String> codeList);

    List<NjtCertificateVo> selectNjtCertificateAllList();

    int selectTotalCount();
    /**
     * 根据合格证编号查询
     *
     * @param code
     * @return
     */
    NjtCertificate getByCode(String code);
}
